#! /bin/sh

#system
echo "running /etc/init.d/rcS"
# mount the /proc file system
/bin/mount -t proc proc /proc
# echo "mount tmpfs filesystem to /tmp"
/bin/mount -t sysfs sysfs /sys
/bin/mount -t tmpfs tmpfs /dev
#echo "mount ramfs filesystem to /var"
/bin/mount -t ramfs none /var
/bin/rm -fr /media/*
echo "starting mdev..."
/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s
/bin/ln -s /dev/rtc0 /dev/rtc
#/bin/mount -t yaffs2 /dev/mtdblock1 /home/
/bin/hostname -F /etc/hostname
#/sbin/hwclock --hctosys
/sbin/insmod /lib/modules/2.6.24/can.ko
/sbin/insmod /lib/modules/2.6.24/yjwcan.ko
#/sbin/insmod /lib/modules/2.6.24/adm706.ko
#/sbin/insmod /lib/modules/2.6.24/ads8344.ko
/sbin/insmod /lib/modules/2.6.24/beep_dev.ko
/sbin/insmod /lib/modules/2.6.24/gpio_dev.ko
#/sbin/insmod /lib/modules/2.6.24/keypad.ko

#network
/sbin/ifconfig lo 127.0.0.1 netmask 255.0.0.0
/sbin/ifconfig eth0 hw ether AE:45:67:56:00:01
/sbin/ifconfig eth0 10.61.5.168 netmask 255.255.255.0
/sbin/ifconfig eth0 down
/sbin/ifconfig eth1 10.61.5.247 netmask 255.255.255.0
/sbin/ifconfig eth1 up

#nfs
/bin/mount -t nfs -o nolock 10.61.5.174:/home/nfs /mnt/nfs

#ftp
tcpsvd 0 21 ftpd -w /  &


#telnet
/bin/mkdir /dev/pts
/bin/mount -t devpts devpts /dev/pts
/usr/sbin/telnetd &


